package SpringIOC.impl;

import SpringIOC.Person;

public class Japan implements Person {
    String name;
    @Override
    public void eat() {
        System.out.println("喝核废水");
    }

    public Japan(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Japan{" +
                "name='" + name + '\'' +
                '}';
    }
}
